<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">

<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <title>index</title>
</head>
<body>
<h2>系统主页</h2>
<a href="logout">退出</a>
<ul>
    <shiro:hasAnyRole name="user,name">
        <li>用户管理
            <ul>
                <shiro:hasPermission name="user:add:*">
                <li>添加</li>
                </shiro:hasPermission>
                <shiro:hasPermission name="user:delete:*">
                    <li>删除</li>
                </shiro:hasPermission>
            </ul>
        </li>
    </shiro:hasAnyRole>
    <p shiro:hasRole="admin">
    <li>商品管理</li>
    <li>订单管理</li>
    <li>物流管理</li>
    </p >
</ul>
</body>
</html>